package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("menu")
public class Menu {
    @TableId(value = "menu_id",type = IdType.AUTO)
    @ApiModelProperty(value = "菜单ID", required = true)
    private Integer menuId;
    @ApiModelProperty(value = "菜单名称",required = true)
    private String menuName;
    @ApiModelProperty(value = "菜单标题",required = true)
    private String menuTitle;
    @ApiModelProperty(value = "菜单路径",required = true)
    private String menuPath;
    @ApiModelProperty(value = "菜单组成",required = true)
    private String menuComponent;
    @ApiModelProperty(value = "角色",required = true)
    private String role;
}
